package com.atguigu.gulimall.member.service;

import com.atguigu.common.exception.RRException;
import com.atguigu.gulimall.member.entity.vo.MemberLoginVo;
import com.atguigu.gulimall.member.entity.vo.MemberRegisterVo;
import com.atguigu.gulimall.member.entity.vo.SocialUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author huyulu
 * @email 1085068942@qq.com
 * @date 2021-11-28 22:46:49
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 注册
     * @author 胡菜鸡
     * @date 2022/1/14 11:28
     */
    boolean register(MemberRegisterVo memberRegisterVo);

    /**
     * 登录
     * @author 胡菜鸡
     * @date 2022/1/14 16:29
     */
    MemberEntity login(MemberLoginVo memberLoginVo);

    /**
     * 社交登录（第一次登录则自动进行注册）
     * @author 胡菜鸡
     * @date 2022/2/7 11:47
     */
    MemberEntity login(SocialUser socialUser);
}

